<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.setAttribute("basePath", basePath);
%>
<%@ include file="/resources/js/easyui/taglibs.jsp" %>
<%@ include file="/resources/js/easyui/_easyui.jsp" %>
<!DOCTYPE>
<html>
<head>
	<link rel="stylesheet" type="text/css" href="${basePath}/resources/css/style.css" />
	<script type="text/javascript">
		$(function(){
			init();
		});
		function init(){
			$('#mytree').tree({
				onClick: function(node){
                    var uri = node.attributes.url;
				    if(uri!="../"){
                        window.parent.rightFrame.location.href=uri ;
					}
				},
				onContextMenu: function(e, node){
					e.preventDefault();
					$('#mytree').tree('select', node.target);
					$('#mm').menu('show', {
						left: e.pageX,
						top: e.pageY
					});
				}
			});
		}
	</script>
</head>
<body>
<div class="lefttop"><span></span>系统功能</div>
	<dl  id="code" class="leftmenu">

		<ul id="mytree" dnd="true" url="../menu"></ul>

		<div id="dlg" style="width:300px;height:180px;padding:20px 0px 10px 20px;"
			 class="easyui-dialog"
			 title="添加" closed="true" modal="true">

		</div>
	</dl>
</body>

</html>
